﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPager-trangadmin.master" AutoEventWireup="true" CodeFile="Them-San-Pham2.aspx.cs" Inherits="Them_San_Pham2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
 <link href="assets/styles/admin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 275px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

        <div id="content">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="Nhà Sản Xuất:"></asp:Label>
                    </td>
                    <td class="style1">
                    <asp:DropDownList ID="nsx" runat="server" Width="200px" DataSourceID="SqlDataSource1"
                        DataTextField="name" DataValueField="id">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:hyundaisaigonConnectionString %> " 
                        SelectCommand="SELECT [id], [name] FROM [nhasanxuat]"></asp:SqlDataSource>
                </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="Dòng Xe:"></asp:Label>
                    </td>
                      <td class="style1">
                    <asp:DropDownList ID="dongxe" runat="server" Width="200px" 
                        DataSourceID="SqlDataSource2" DataTextField="name" DataValueField="id">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:hyundaisaigonConnectionString %>" 
                        SelectCommand="SELECT * FROM [dongxe]"></asp:SqlDataSource>
                </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label13" runat="server" Text="Tên Xe:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="tx" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label12" runat="server" Text="Loại Xe:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="lx" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="Đời Xe:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:DropDownList ID="dx" runat="server" Width="200px" 
                        DataSourceID="SqlDataSource3" DataTextField="nam" DataValueField="id">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:hyundaisaigonConnectionString %>" 
                        SelectCommand="SELECT * FROM [doixe]"></asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label4" runat="server" Text="Ngoại Thất:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="nt" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label5" runat="server" Text="Số Cửa:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="sc" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label6" runat="server" Text="Số Chỗ Ngồi:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="scn" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label7" runat="server" Text="Hộp Số:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="hs" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label8" runat="server" Text="Nhiên Liệu:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="nl" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label9" runat="server" Text="Hệ Thống Nhiên Liệu:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="htnl" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label10" runat="server" Text="Tiêu Thụ Nhiên Liệu:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="ttnl" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label11" runat="server" Text="Đường Link Ảnh:"></asp:Label>
                    </td>
                    <td class="style1">
                        <asp:TextBox ID="imgURL" runat="server" Width="200px" AutoPostBack="True"></asp:TextBox>
                        <br />
                        OR<br />
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                        <asp:Button ID="Button3" runat="server" Height="20px" onclick="Button3_Click" 
                            Text="Upload" Width="60px" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="padding-left:40px" class="style1">
                        <asp:Button ID="btnXacnhan" runat="server" Text="Xác nhận" OnClick="XacNhan_Click" />
                        <input type="reset" name="Đặt lại" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td class="style1">
                        <asp:Label ID="xacnhan" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
      
</asp:Content>

